package com.weic.design.event;

import com.weic.design.subject.Subject;

/**
 * 事件对象需要记录事件源，比如是哪个孩子
 */
public class SubjectEvent {
    private String msg;
    private Subject source;

    public SubjectEvent(String msg, Subject source) {
        this.msg = msg;
        this.source = source;
    }

    public SubjectEvent() {
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Subject getSource() {
        return source;
    }

    public void setSource(Subject source) {
        this.source = source;
    }
}
